package ${package.Service};

import com.github.pagehelper.PageInfo;
import ${cfg.package}.vo.query.${entity}QryVO;
import ${cfg.package}.vo.request.${entity}ReqVO;
import ${cfg.package}.vo.response.${entity}RepVO;

import java.util.List;

/**
 * <p>
 * ${table.comment!} 服务类
 * </p>
 *
 * @author ${author}
 * @since ${date}
 */
public interface ${table.serviceName} {
    /**
     * ${table.comment!}  详情查询
     *
     * @param id 查询主键ID
     * @return ${entity}RepVO
     * @author ${author}
     * @date ${.now?string("yyyy-MM-dd HH:mm:ss")}
     */
    ${entity}RepVO get(long id);

    /**
     * ${table.comment!}  列表查询
     *
     * @param qryVO 查询参数
     * @return List<${entity}RepVO>
     * @author ${author}
     * @date ${.now?string("yyyy-MM-dd HH:mm:ss")}
     */
    List<${entity}RepVO> list(${entity}QryVO qryVO);

    /**
     * ${table.comment!}  分页列表查询
     *
     * @param qryVO 查询参数
     * @return PageInfo<${entity}RepVO>
     * @author ${author}
     * @date ${.now?string("yyyy-MM-dd HH:mm:ss")}
     */
    PageInfo<${entity}RepVO> pageList(${entity}QryVO qryVO);

    /**
     * ${table.comment!}  新增
     *
     * @param reqVO 请求参数
     * @author ${author}
     * @date ${.now?string("yyyy-MM-dd HH:mm:ss")}
     */
    void save(${entity}ReqVO reqVO);

    /**
     * ${table.comment!}  修改
     *
     * @param reqVO 请求参数
     * @author ${author}
     * @date ${.now?string("yyyy-MM-dd HH:mm:ss")}
     */
    void update(${entity}ReqVO reqVO);
}
